package com.yuanluludev.app

import com.yuanluludev.gaode.utils.LocUtils
import com.yuanluludev.imageloader.glide.GlideManager
import com.yuanluludev.lib_base.application.BaseApplication
import com.yuanluludev.lib_base.manager.ActivityManager
import com.yuanluludev.lib_x5web.X5WebInit
import com.yuanluludev.pgy.Pgy

class App : BaseApplication() {

    override fun onCreate() {
        super.onCreate()
        //X5 web初始化
        X5WebInit.init(this)
        //蒲公英初始化
        Pgy.init(this)
        //高德定位进行合规检查
        LocUtils.init(false,3000)
        //自己管理的活动栈
        ActivityManager.getInstance().init(this)
    }

    override fun onLowMemory() {
        super.onLowMemory()
        GlideManager.onLowMemory(this)
    }

    override fun onTrimMemory(level: Int) {
        super.onTrimMemory(level)
        GlideManager.onTrimMemory(this, level)
    }

}